The 'inherited' specifier indicates that the set() method of the base class (namely Person) is being called. When a set message is sent to an object of type Student, the id_number instance variable is assigned, and then the age and weight instance variables are assigned according to the inherited set() function.
In C++ the 'inherited' word is not available, and the programmer should instead use:
Person::set();
The overriding print() method uses the same technique to call the inherited print() method.